package ui.list 
{
	import flash.display.Bitmap;
	import flash.display.Shape;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Jason Won
	 */
	public class GCListUI extends Sprite
	{
		private var _selectedScreen:Shape;
		private var component_width:int;
		private var component_height:int;
		
		public function GCListUI(width:int, height:int)
		{
			component_width = width;
			component_height = height;
			
			// Add background image
			var background:Bitmap = GCResources.getWoodBackground(component_width, component_height);
			this.addChild(background);
			
			_selectedScreen = new Shape();
			_selectedScreen.graphics.beginFill(0x0000ff);
			_selectedScreen.graphics.drawRect(0, 0, component_width, component_height);
			_selectedScreen.graphics.endFill();
			_selectedScreen.alpha = .5;
		}
		
		//----------------------------------------------------------------------
		//	PUBLIC FUCTIONS
		//----------------------------------------------------------------------		
		
		public function selected():void
		{
			this.addChild(_selectedScreen);
		}
		
		public function deselected():void
		{
			if (_selectedScreen.parent == this)
				this.removeChild(_selectedScreen);
		}
		
	}

}